import {ref,computed} from 'vue'
import {defineStore} from 'pinia'

export const useUserStore = defineStore('user',()=>{
    //pinia里定义用户的储存信息
    const userinfo=ref({
        UserId: 0,
        UserName: '',
        UserPwd: '',
        UserEmail: '',
        UserPhone: '',
        RoleId: 0,
        Token: ''
    })
    return {
        userinfo
    }
})